//
//  WillCell.m
//  MaxMovie
//
//  Created by Maxdong on 14-12-24.
//  Copyright (c) 2014年 lanou3g.com 蓝欧科技. All rights reserved.
//

#import "WillCell.h"

@implementation WillCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self)
    {
        // Initialization code
        [self setCell];
    }
    return self;
}

- (void)dealloc
{
    [super dealloc];
    [_picView release];
    [_titleLabel release];
    [_peopleLabel release];
    [_typeLabel release];
    [_DYLabel release];
    [_YGbutton release];
}



- (void)setCell
{
    UIImageView *BigImageView = [[UIImageView alloc]init];
    BigImageView.frame = CGRectMake(0, 0, self.frame.size.width, 120);
    BigImageView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"big.png"]];
    [self addSubview:BigImageView];
    [BigImageView release];
    self.BigpicView = BigImageView;
    
    
    //图片
    UIImageView *tmpPicView = [[UIImageView alloc]init];
    tmpPicView.frame = CGRectMake(10, 10, 80, 100);
    [self addSubview:tmpPicView];
    [tmpPicView release];
    self.picView = tmpPicView;
    
    //标题
    UILabel *tmpTitleLabel = [[UILabel alloc]init];
    tmpTitleLabel.frame = CGRectMake(100, 5, 200, 30);
    tmpTitleLabel.font = [UIFont boldSystemFontOfSize:16];
    [self addSubview:tmpTitleLabel];
    [tmpTitleLabel release];
    self.titleLabel = tmpTitleLabel;
    
    //分类
    UILabel *tmpTypeLabel = [[UILabel alloc]init];
    tmpTypeLabel.frame = CGRectMake(100, 40, 200, 20);
    tmpTypeLabel.font = [UIFont systemFontOfSize:13];
    [self addSubview:tmpTypeLabel];
    [tmpTypeLabel release];
    self.typeLabel = tmpTypeLabel;
    
    
    
    //人数
    UILabel *tmpPeopleLabel = [[UILabel alloc]init];
    tmpPeopleLabel.frame = CGRectMake(100, 65, 150, 20);
    tmpPeopleLabel.font = [UIFont systemFontOfSize:13];
    [self addSubview:tmpPeopleLabel];
    [tmpPeopleLabel release];
    self.peopleLabel = tmpPeopleLabel;
    
    
    
    //导演
    UILabel *tmpdYLabel = [[UILabel alloc]init];
    tmpdYLabel.frame = CGRectMake(100, 90, 150, 20);
    tmpdYLabel.font = [UIFont systemFontOfSize:13];
    [self addSubview:tmpdYLabel];
    [tmpdYLabel release];
    self.DYLabel = tmpdYLabel;
    
    
}

- (void)awakeFromNib
{
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

@end
